import java.util.Scanner;

public class Prime {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个数：");
        int num=scanner.nextInt();
        int i=0;
        for(i=2;i<num;i++){
            if(i%num==0){
                System.out.println(num+"不是素数");
                break;
            }
        }
       if(i==num){
           System.out.println(num+"是素数");
       }
    }
}
